package com.website.company.mapper;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.website.company.entity.Notice;
import com.website.company.entity.Notice;
import com.website.company.utils.NoticeSearchDTO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author peng yangyan
 * @since 2018-11-22
 */
public interface NoticeMapper extends BaseMapper<Notice> {

    Integer findNoticeCount(@Param("productSearchDTO") NoticeSearchDTO productSearchDTO);

    List<Notice> findNoticePage(@Param("productSearchDTO") NoticeSearchDTO productSearchDTO);

    List<Notice> allNotice();

    List<Notice> getByKeyword(@Param("keyword") String keyword);

    List<Notice> getNoticeList();

    List<Notice> rssNoticeAll();

}